#ifndef CINTRUDERSDETECTOR_H
#define CINTRUDERSDETECTOR_H

#include "cv.h"
#include "ivscontrollerbase.h"
#include "ivsmodel.h"

class CIntrudersDetector : public IVSControllerBase
{
    enum eState{
        INVALID,
        INTRUDER_DETECTED,
        NORMAL
    };

    Q_OBJECT
public:
    CIntrudersDetector(IVSModel *_ivsModel);

signals:

public slots:
    void run();
    void stop();

private:
    eState currentState;
    eState lastState;

    void showMainImage(IplImage *img);
    void release();
};

#endif // CINTRUDERSDETECTOR_H
